package com.alkaid.anime.service;

import com.alkaid.commons.param.anime.AnimeHistoryParam;

/**
 * @author Kylin
 */
public interface HistoryService {
    /**
     * Sets history.
     *
     * @param userId the user id
     * @param select the anime history
     */
    void setHistory(Long userId, AnimeHistoryParam select);

    /**
     * Gets history by anime id.
     *
     * @param userId  the user id
     * @param animeId the anime id
     * @return the history by anime id
     */
    AnimeHistoryParam getHistoryByAnimeId(Long userId, Integer animeId);

    /**
     * Gets history by anime video id.
     *
     * @param userId       the user id
     * @param animeVideoId the anime video id
     * @return the history by anime video id
     */
    AnimeHistoryParam getHistoryByAnimeVideoId(Long userId, Long animeVideoId);
}
